package com.guigu.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.guigu.mapper.ReturnCaseMapper;
import com.guigu.pojo.ReturnCase;
import com.guigu.service.ReturnCaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ReturnCaseServiceImpl extends ServiceImpl<ReturnCaseMapper, ReturnCase>
implements ReturnCaseService {

    @Autowired
    ReturnCaseMapper returnCaseMapper;

    @Override
    public List<ReturnCase> queryCaseByShopState(Integer state) {
        QueryWrapper<ReturnCase> queryWrapper=
                new QueryWrapper<ReturnCase>();
        queryWrapper.eq("is_delete",0);
        queryWrapper.eq("pid",state);
        return this.list(queryWrapper);
    }
}
